from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$',                  'portfolio.views.index', name="home" ),
    url(r'^home/$',             'portfolio.views.index', name="home" ),
    url(r'^login/$',            'portfolio.views.user_login', name="login" ),
    url(r'^logout/$',           'portfolio.views.user_logout', name="logout" ),
    url(r'^register/$',         'portfolio.views.register_user', name="register" ),

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/(.*)', admin.site.root),
)

if settings.DEBUG:
    urlpatterns += patterns( '',
        url( r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT} ),
    )